package cn.iocoder.yudao.module.crm.controller.admin.task.vo.taskapprover;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - CRM 任务单审批人关联新增/修改 Request VO")
@Data
public class TaskApproverSaveReqVO {

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "24090")
    private Long id;

    @Schema(description = "任务单ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "28280")
    @NotNull(message = "任务单ID不能为空")
    private Long taskId;

    @Schema(description = "用户ID（其中0为系统）", requiredMode = Schema.RequiredMode.REQUIRED, example = "25234")
    @NotNull(message = "用户ID（其中0为系统）不能为空")
    private Long userId;

    @Schema(description = "审核状态（由0开始，依次为待审核、审核不通过、审核通过）", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "审核状态（由0开始，依次为待审核、审核不通过、审核通过）不能为空")
    private Integer reviewStatus;

    @Schema(description = "审批次序", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "审批次序不能为空")
    private Integer reviewOrder;
}